package com.pj.wisdomlogistics.mvp.contract;


import com.pj.wisdomlogistics.entity.ApplyDetailInfo;
import com.pj.wisdomlogistics.mvp.frame.base.BasePresenter;
import com.pj.wisdomlogistics.mvp.frame.base.BaseView;

import java.io.File;


public interface ApplyDetailContract {
    public interface View extends BaseView {
        public void onError(String errorMsg);
        public void onSuccess(ApplyDetailInfo mInfo);
        public void onSignSuccess(int sign); //0签字 1//驳回
        public void onCheckSuccess();
        public void portionSuccess(int sign);
        public void agreeSuccess();
        public void onUndoSuccess();
    }

    public interface Presenter extends BasePresenter {
        public void findMeetingApplyDetail(int meetingApplyID);
        public void meetingApplySign(
                int meetingApplyID,
                String userID,
                File sign,
                int state,
                String comment,
                int isSign
        );
       public void meetingApplyReview(
               int meetingApplyID,
               String userID,
               String comment,
               int state
       );
        public void meetingApplyAllot(int meetingApplyID, String userID,
                String comment , String serverIDs , int state , int isSign);

        public void meetingApplyKZ(
                String userID ,
                String meetingApplyID ,
                String state ,
                String comment
        );
        public void cancelMeetingApply(
                int meetingApplyID
        );
    }
}
